<?php 
    if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_GET['pg'] == ''){
        echo '<div id="search_holder">';
        echo '<form id="searchform" action="search.html" method="post">';
        echo '<input id="search_field" type="text" value="Cauta" name="search">';
        echo '<input id="search_go" type="submit" value="">';
        echo '</form>';
        echo '</div>';
    } elseif ($_GET['pg'] == 'pages'){
        echo '<div id="search_holder_var">';
        echo '<form id="searchform" action="../../search.html" method="post">';
        echo '<input id="search_field" type="text" value="Cauta" name="search">';
        echo '<input id="search_go" type="submit" value="">';
        echo '</form>';
        echo '</div>';
    } else {
        echo '<div id="search_holder_var">';
        echo '<form id="searchform" action="search.html" method="post">';
        echo '<input id="search_field" type="text" value="Cauta" name="search">';
        echo '<input id="search_go" type="submit" value="">';
        echo '</form>';
        echo '</div>';
    }
?>